package main

import (
	"gitee.com/biulai/GeoTwo/duckType/mooc"
	"fmt"
	"gitee.com/biulai/GeoTwo/duckType/baidu"
)

type Retriever interface {
	Get(url string) string
}

func download(retriever Retriever) string {
	return retriever.Get("http://www.baidu.com")
}

func main() {
	var r Retriever
	r = mooc.Retriever{}
	r=baidu.Retriever{}
	fmt.Println(download(r))
}
